package org.ala.distributed_transaction_commons.communication.participant;

import org.ala.distributed_transaction_commons.communication.AbstractActionExector;
import org.ala.distributed_transaction_commons.communication.participant.actions.CanCommitAction;
import org.ala.distributed_transaction_commons.communication.participant.actions.CommitAction;
import org.ala.distributed_transaction_commons.communication.participant.actions.FinishAction;
import org.ala.distributed_transaction_commons.communication.participant.actions.PreCommitAction;
import org.ala.distributed_transaction_commons.communication.participant.actions.RollbackAction;
import org.springframework.beans.factory.InitializingBean;

/**
 *
 * @author 骆毅(ala)
 * @date 2024年2月20日
 */
public class ParticipantActionExector extends AbstractActionExector implements InitializingBean{

	@Override
	public void afterPropertiesSet() throws Exception {
		appendAction(new CanCommitAction());
		appendAction(new PreCommitAction());
		appendAction(new CommitAction());
		appendAction(new RollbackAction());
		appendAction(new FinishAction());
	}

}
